<template>
    <div class="demo">
        <div class="container" style="background-color: #eee;" v-for="item in navLists" :key="item">{{item}}</div>
        <ScrollsideNavBar :navLists="navLists"></ScrollsideNavBar>
    </div>
</template>
  
<script lang="ts" setup>
    import { ref, reactive, markRaw, onBeforeMount, onMounted, onBeforeUnmount, nextTick, computed, watch } from 'vue'
    import type { Ref, Raw } from 'vue'
    import { useRoute, useRouter } from 'vue-router'
    import { storeToRefs } from 'pinia'
    import { useStore } from '@/store'
    import ScrollsideNavBar from '@/components/scrollsideNavBar/ScrollsideNavBar.vue'

    const navLists:Ref<string[]> = ref(["标题1", "标题2", "标题3", "标题4","标题5"])
    
</script>
  
<style lang="scss" scoped>
    .demo {
        height: 100%;
        overflow-x: hidden;
        overflow-y: scroll;
        position: relative;
    }
    .container {
        width: 100%;
        height: 600px;
        font-size: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid black;
    }
</style>
